def run(params:list[str]):
    import re
    from ApiTools import apiTools, apiBase

    try:
        req = apiBase.argv(1,'从不打没有准备的杖')
        sys_prompt = f'''You are an expert in Chinese text spelling and error correction'''
        prompt = f'''## content
    {req}
            
    ## requirements
    According to the above content, correct the grammar and spelling errors  with the following requirements:
    1. Please convert the content line by line, do not skip any line of content.
    2. The output should only provide correct spelling and grammar without any explanations.
    3. The output should execute without any errors.
    5. The correct text output format is
    ```text```'''
        query=apiTools.complete(sys_prompt,prompt)
        structures = re.findall(r'```.*?```', query, re.DOTALL)
        # 输出截取的表结构字符串
        for st in structures:
            query=st[3:-3]
        print(query)
    finally:
        apiBase.close()